<?php
include_once('king_head.php');
?>
<table width="100%" border="0" align="center">
  <tr>
    <td height="50" colspan="4"><h2 align="center">Memory Usage Restrictions </h2></td>
    </tr>
  <tr>
    <td width="218">Reseller</td>
    <td width="59">&nbsp;</td>
    <td width="187">Maximum File Size</td>
    <td width="185">Space Allcated </td>
  </tr>
  <?php
  $qr="Select * from reseller";
  $rs=mysql_query($qr);
  while($row=mysql_fetch_array($rs))
  {if($row['site_id']!=0 && $row['site_id']!=101){
  ?>
  <tr>
    <td><?php echo $row['title'].$row['fname'].$row['mname'].$row['lname']."(".$row['site_id'].")";?></td>
    <td><input name="Button" type="submit" id="Button" value="Change" onClick="window.open('ch_mem_alloc.php?site_id=<?php echo $row['site_id'];?>&Fs='+ document.getElementById('f_size<?php echo $row['site_id']?>').value + '&Ms=' + document.getElementById('m_size<?php echo $row['site_id']?>').value); window.focus();"/></td>
    <td><input type="text" name="f_size<?php echo $row['site_id']?>" id="f_size<?php echo $row['site_id']?>" value="<?php echo $row['f_size'];?>">
Bytes </td>
    <td><input type="text" name="m_size<?php echo $row['site_id']?>" id="m_size<?php echo $row['site_id']?>" value="<?php echo $row['m_size'];?>">
Bytes </td>
  </tr>
  <?php }}?>
</table>
<?php
include_once('king_foot.php');
?>